<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png">
    <HelloWorld msg="Welcome to Your Vue.js App"/>
    <HelloWorld />
    <HelloWorld />
    <my-component-name />
  </div>
</template>

<script>
import Vue from 'vue/dist/vue.esm.js'
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'
Vue.component('my-component-name',{
  template: '<h3> 第一个局部组件 </h3>',
})

export default {
  name: 'home',
  components: {
    HelloWorld,
  },
}
</script>
